package com.huffman.smart_picture.service;

import com.huffman.smart_picture.common.UserSession;
import com.huffman.smart_picture.domain.entity.VipExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huffman.smart_picture.domain.request.exchange.VipExchangeCreateRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 * @description 针对表【vip_exchange_code(会员兑换)】的数据库操作Service
 * @createDate 2025-06-08 20:29:24
 */
public interface VipExchangeCodeService extends IService<VipExchangeCode> {

    boolean createVipExchangeCode(VipExchangeCreateRequest vipExchangeCreateRequest, UserSession userSession);

    /**
     * vip兑换
     *
     * @param code
     * @param httpServletRequest
     * @return
     */
    boolean exchangeVip(String code, HttpServletRequest httpServletRequest);
}
